import {Permit} from "@/apis/model/system/PermitModel";

export interface Menu {
  id: number,
  name: string,
  title: string,
  intro: string,
  path: string,
  icon: string,
  menuSort: number,
  parentId: number
  statusFlag: number
  menuType: number
  delFlag: number
  tabShowDelFlag: number
  createUser: string
  createTime: Date
  updateTime: Date
  remark: string
}

/**
 * 角色权限树
 */
export interface MenuPermitTree {
  menuId?: number,
  allotPermitVisible: Boolean,   // dialog 是否显示
  tableData: Array<Permit>,
  checkedKeys: Array<number>,
  roleId?: number
}